package kr.hkit.powerjava.chapter12.interfaceex;
interface RemoteControl{
	public static int i = 1;
	void turnOn();
	void turnOff();
}
public class AnonymousClassTest {
	public static void main(String[] args) {
		RemoteControl ac = new RemoteControl(){
			
			
			public void turnOn(){
				int j = 2;
				System.out.println("Tv turnOn");
			}
			public void turnOff(){
				System.out.println("Tv turnOff");
			}
		};
		
		ac.turnOn();
		ac.turnOff();
		System.out.println(ac.i);
	}
}
